package com.hospital.spd.pojo;

/**
 * JSON数据返回实体
 * @author heghai
 */
public class ReportJsonResult<T> {
    private Integer code;
    private String msg;
    private Integer count;
    private T data;

    public ReportJsonResult() {
    }

    public ReportJsonResult(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ReportJsonResult(Integer code, String msg, Integer count, T data) {
        this.code = code;
        this.msg = msg;
        this.count = count;
        this.data = data;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("JsonResult{");
        sb.append("code=").append(code);
        sb.append(", msg='").append(msg).append('\'');
        sb.append(", count=").append(count);
        sb.append(", data=").append(data);
        sb.append('}');
        return sb.toString();
    }
}
